

package com.hazelcast.internal.nearcache.impl.invalidation;

import com.hazelcast.spi.impl.eventservice.EventRegistration;

import java.util.function.Predicate;

/**
 * Utils for invalidations.
 */
public final class InvalidationUtils {

    public static final long NO_SEQUENCE = -1L;
    public static final Predicate<EventRegistration> TRUE_FILTER = new TrueFilter();

    private InvalidationUtils() {
    }

    private static class TrueFilter implements Predicate<EventRegistration> {
        @Override
        public boolean test(EventRegistration eventRegistration) {
            return true;
        }
    }
}
